package top.hcode.hoj.dao.problem;

import top.hcode.hoj.pojo.entity.problem.Tag;
import top.hcode.hoj.pojo.entity.problem.TagRel;
import top.hcode.hoj.mapper.TagRelMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author orangej
 * @since 2024/12/24
 */
@Service
public class TagRelDao extends ServiceImpl<TagRelMapper, TagRel> {

    public List<Tag> getTagsByTarget(Long targetId, String targetType) {
        return baseMapper.getTagsByTarget(targetId, targetType);
    }

    public List<Tag> getTagsByTargets(List<Long> targetIds, String targetType) {
        return baseMapper.getTagsByTargets(targetIds, targetType);
    }

}
